//
// Created by 34753 on 2025/6/20.
//
#include "student.h"

Student::Student(QObject *parent) : QObject(parent)
{
}

Student::Student(const QString &id, const QString &name, const QString &gender,
                 const QString &college, const QString &department,
                 const QString &classname, const QString &dorm,
                 const QString &hometown, const QString &phone,
                 QObject *parent)
    : QObject(parent), m_id(id), m_name(name), m_gender(gender),
      m_college(college), m_department(department), m_classname(classname),
      m_dorm(dorm), m_hometown(hometown), m_phone(phone)
{
}

// Getter实现
QString Student::id() const { return m_id; }
QString Student::name() const { return m_name; }
QString Student::gender() const { return m_gender; }
QString Student::college() const { return m_college; }
QString Student::department() const { return m_department; }
QString Student::classname() const { return m_classname; }
QString Student::dorm() const { return m_dorm; }
QString Student::hometown() const { return m_hometown; }
QString Student::phone() const { return m_phone; }

// Setter实现
void Student::setId(const QString &id)
{
    if (m_id != id)
    {
        m_id = id;
        emit idChanged();
    }
}

void Student::setName(const QString &name)
{
}

void Student::setGender(const QString &gender)
{
}

void Student::setCollege(const QString &college)
{
}

void Student::setDepartment(const QString &department)
{
}

void Student::setClassname(const QString &classname)
{
}

void Student::setDorm(const QString &dorm)
{
}

void Student::setHometown(const QString &hometown)
{
}

void Student::setPhone(const QString &phone)
{
}

